package sing.rabbit.common.configurations;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xing
 * @date 2022/9/7 18:58
 */
@Configuration
public class SimpleConfiguration {
    public static final String SIMPLE_QUEUE_NAME = "simple-queue";
    // public static final String SIMPLE_EXCHANGE_NAME = "simple-exchange";

    @Bean
    public Queue simpleQueue() {
        return new Queue(SIMPLE_QUEUE_NAME, true, false, false);
    }

}
